/**
 * 
 */
package com.zt.samples.mybatis;

/**
 * @author yinxb
 * 
 */
public class DemoBean {
	/**
	 * ID
	 */
	private long id;
	/**
	 * 名称
	 */
	private String name;
	/**
	 * 年龄
	 */
	private int age;
	/**
	 * 地址
	 */
	private String address;
	/**
	 * 电子邮件
	 */
	private String email;

	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(long id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the age
	 */
	public int getAge() {
		return age;
	}

	/**
	 * @param age the age to set
	 */
	public void setAge(int age) {
		this.age = age;
	}

	/**
	 * @return the address
	 */
	public String getAddress() {
		return address;
	}

	/**
	 * @param address
	 *            the address to set
	 */
	public void setAddress(String address) {
		this.address = address;
	}

	/**
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * @param email
	 *            the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}

	/**
	 * 对象属性转换成显示串.
	 * @return 显示字符串
	 *
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return new StringBuilder("ID: ").append(id).append("\nNAME: ")
				.append(name).append("\nADDRESS: ").append(address)
				.append("\nEMAIL: ").append(email).toString();
	}
}
